package org.bwgl.demo6.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.bwgl.demo6.pojo.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper <User> {
//    @Select("select * from user")
//    public  List<User> getAllUser();
//
//    @Insert("insert into user value(#{id},#{name},#{password})")
//    int addUser(User user);
//
//    @Update("update user set id=#{id},name=#{name},password=#{password} where id = #{id}")
//    int updateUser(User user);
//
//    @Select("select * from user where id=#{id}")
//    User getUser(int id);
}
